<template>
    <div>
      <el-dialog
        title=""
        :visible.sync="fiveverify"
        width="1200px"
        center @close="closes">
        <iframe width="100%" height="550px" :src='srcs' frameborder="0" v-if="fivenum === 3"></iframe>
<!--        at-->
        <iframe v-if="fivenum === 2" width="100%" height="550px" src='http://47.105.123.244:8081/ATNew/Edit/OtherPageIn?mId=""&createdBy=4302&brewery=90012691&department=10021861&area=10021862&classNum=2&device=3464&triggerCondition=1&piInfo=E7DECC8C-FE08-49FE-B696-074B6C2708C9&secretKey=rrgSUdYhz3oM0c8swVCWKA==' frameborder="0"></iframe>
<!--        s-->
        <iframe v-if="fivenum === 1" width="100%" height="550px" src='http://47.105.123.244:8081/SIC/SICMonitorPI?createdBy=12215&secretKey=rrgSUdYhz3oM0c8swVCWKA==&data=[{%20%22CorpName%22:%20%22%E5%93%88%E5%B0%94%E6%BB%A8%E5%B7%A5%E5%8E%82%22,%20%22PICode%22:%20%22PG-B20214-1%22,%20%22TriggerTime%22:%20%222019-08-02%2010:58:55%22,%20%22CurrentVal%22:%208,%20%22RedWarningMaxVal%22:%2020.0,%20%22RedWarningMinVal%22:%2018.0,%20%22YellowWarningMaxVal%22:%2018.0,%20%22YellowWarningMinVal%22:%2010.0,%20%22GreenMaxVal%22:%2010.0,%20%22GreenMinVal%22:%200.0%20},%20{%20%22CorpName%22:%20%22%E5%93%88%E5%B0%94%E6%BB%A8%E5%B7%A5%E5%8E%82%22,%20%22PICode%22:%20%22PG-B20214-1%22,%20%22TriggerTime%22:%20%222019-08-02%2011:18:55%22,%20%22CurrentVal%22:%208.0,%20%22RedWarningMaxVal%22:%2020.0,%20%22RedWarningMinVal%22:%2015.0,%20%22YellowWarningMaxVal%22:%2015.0,%20%22YellowWarningMinVal%22:%206.0,%20%22GreenMaxVal%22:%206.0,%20%22GreenMinVal%22:%200.0%20},%20{%20%22CorpName%22:%20%22%E5%93%88%E5%B0%94%E6%BB%A8%E5%B7%A5%E5%8E%82%22,%20%22PICode%22:%20%22PG-B20214-1%22,%20%22TriggerTime%22:%20%222019-08-02%2011:23:55%22,%20%22CurrentVal%22:%2012.0,%20%22RedWarningMaxVal%22:%2020.0,%20%22RedWarningMinVal%22:%2015.0,%20%22YellowWarningMaxVal%22:%2015.0,%20%22YellowWarningMinVal%22:%206.0,%20%22GreenMaxVal%22:%206.0,%20%22GreenMinVal%22:%200.0%20},%20{%20%22CorpName%22:%20%22%E5%93%88%E5%B0%94%E6%BB%A8%E5%B7%A5%E5%8E%82%22,%20%22PICode%22:%20%22PG-B20214-1%22,%20%22TriggerTime%22:%20%222019-08-02%2011:25:55%22,%20%22CurrentVal%22:%2015.0,%20%22RedWarningMaxVal%22:%2020.0,%20%22RedWarningMinVal%22:%2014.0,%20%22YellowWarningMaxVal%22:%2014.0,%20%22YellowWarningMinVal%22:%2010.0,%20%22GreenMaxVal%22:%2010.0,%20%22GreenMinVal%22:%200.0%20}]' frameborder="0"></iframe>
        <!--        <div style="width: 700px;overflow-x: scroll">-->
<!--          <iframe width="1100px" height="380px" src='http://47.105.123.244:8081/AT5W/My5W/OtherPageIn?mId=""&createdBy=4302&brewery=90012691&department=10021861&area=10021862&classNum=2&device=3464&triggerCondition=1720&piInfo=E7DECC8C-FE08-49FE-B696-074B6C2708C9&secretKey=rrgSUdYhz3oM0c8swVCWKA==' frameborder="0"></iframe>-->
<!--        </div>-->
      </el-dialog>
    </div>
</template>

<script>
    export default {
        name: "five",
      props:{
        fiveverify:{
          type:Boolean,
          default:false
        },
        adfiveid:{
          type: String,
          default: null
        },
        // 2是s 1是at 3是5w
        fivenum:{
          type:Number,
          default:0
        }
      },
      data(){
        return{
          srcs:"",
          loading:false,
        }
      },
      watch:{
        adfiveid(val){
          let that = this;
          console.log("-------",that.adfiveid);
          // '+ that.adfiveid +'
          that.srcs = 'http://47.105.123.244:8081/AT5W/Check/OutSystemFiveWAudit?createdBy=12249&atId='+ that.adfiveid +'&secretKey=rrgSUdYhz3oM0c8swVCWKA==&productLine=2'

          // that.srcs = 'http://47.105.123.244:8081/AT5W/Check/OutSystemFiveWAudit?createdBy=4302&atId='+ that.adfiveid +'&secretKey=rrgSUdYhz3oM0c8swVCWKA=='
          console.log("-------",that.srcs);
        }
      },
      mounted(){
        // if(){
        //   this.loading = true;
        // }
      },
      methods:{
        closes(){
          this.$emit("closeFive",false)
        }
      }
    }
</script>

<style scoped>

</style>
